package com.jmeurope.service;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
/**
 * 
 * Description:  AOP测试
 *
 * @author 王威    Email:leo_java@163.com
 * @version 1.0
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * Aug 18, 2011 10:47:55 PM         王威     3.0         To create
 *
 * @since 
 * @see
 */
@Aspect
public class ArroundAddAccount{
	@Pointcut("execution(* com.jmeurope.service.UserServiceImpl.addAccount(..))")
	public void toDo(){
		
	}
	@Around("toDo()")
	public Object invoke(ProceedingJoinPoint p) throws Throwable {
		System.out.println(p.getArgs()[0]);
		return p.proceed();
	}

}
